package com.shunli.cterminal.enums;

import com.examples.core.enums.BaseEnum;
import com.examples.core.enums.EnumOperations;
import lombok.AllArgsConstructor;
import lombok.Getter;

/**
 * 订单分类
 */
@Getter
@AllArgsConstructor
public enum OrderCategoryEnum implements BaseEnum<String> {
    ONLINE("0","在线订单"),
    SALE("1","销售订单");

    private final String code;
    private final String desc;

    public static OrderCategoryEnum ofCodeNoisy(String code) {
        return EnumOperations.getByCodeNoisy(OrderCategoryEnum.class, code);
    }
}
